/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



import javax.microedition.lcdui.Graphics;

/**
 *
 * @author ANH
 */
public class Pointer {
    public int x;
    public int y;
    public Pointer(int _x,int _y){
        x=_x;
        y=_y;
    }

    public void render(Graphics g){
        g.drawRect(x, y, 25, 25);
    }
    public void Up(){
        y-=27;
    }
    public void Down(){
        y+=27;
    }
    public void Right(){
        x+=24;
    }
    public void Left(){
        x-=24;
    }
    public void reset(int _x,int _y){
        x=_x;
        y=_y;
    }
}
